package cn.edu.scau.cmi.huangzhiyuan.domain;

import cn.edu.scau.cmi.huangzhiyuan.interProgramming.one.Person;

public class Student implements Person {

	private static Student student = null;
	
	// 构造方法私有化
	private Student () {
	}
	
	// 单利模式获取实例
	public static Student getInstance() {
		
		if(student == null) {
			student = new Student();
		}
		
		return student;
	}
	
	
	public String introduceSelf() {
		return "I am a student.";
	}
	
}
